package code.wyc.service;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import code.wyc.dao.UserDao;
import code.wyc.dto.User;

@Service
public class UserService {

	@Autowired
	UserDao userDao;
	
	public User getUserByName(String name) {
		return userDao.findByName(name);
	}
	
	public Integer findUserCount() {
		return userDao.findAll().size();
	}
}
